Passed
Push — depfu/update/npm/lodash-4.17.1... ( 152c97 )
by
unknown
04:58
created

utils.ts ➔ getPath   A

Complexity

Conditions 2

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
declare var window: {
2
    require: any;
3
};
4
5
declare var process: any;
6
7
const path = window.require('path');
8
9
export const utils = {
10
    isDev: (process.env.DEV)
11
        ? (process.env.DEV.trim() === 'true')
12
        : false,
13
    getPath(_path: string) {
14
        return path.join(process.cwd(), _path);
15
    }
16
};
17